package com.alone.openai.api.core;

/**
 * 参考链接 https://platform.openai.com/docs/api-reference
 *
 * @author Alone
 * @date 2023/3/22 10:17 上午
 */
public final class ApiConstant {

    public static final String IMG_SIZE_256 = "256x256";
    public static final String IMG_SIZE_512 = "512x512";
    public static final String IMG_SIZE_1024 = "1024x1024";

    public static final String IMG_RESPONSE_URL = "url";
    public static final String IMG_RESPONSE_B64_JSON = "b64_json";

    public static final String AUDIO_RESPONSE_JSON = "json";
    public static final String AUDIO_RESPONSE_TEXT = "text";
    public static final String AUDIO_RESPONSE_SRT = "srt";
    public static final String AUDIO_RESPONSE_VERBOSE_JSON = "verbose_json";
    public static final String AUDIO_RESPONSE_VTT = "vtt";

    public static final String CONTENT_TYPE = "application/json; charset=UTF-8";

    public static final String URL_OPEN_AI = "https://api.openai.com";

    public static final String URL_GET_LIST_MODEL_V1 = URL_OPEN_AI + "/v1/models";
    public static final String URL_GET_RETRIEVE_MODEL_V1 = URL_OPEN_AI + "/v1/models/{model}";

    public static final String URL_POST_CREATE_COMPLETIONS_V1 = URL_OPEN_AI + "/v1/completions";

    public static final String URL_POST_CREATE_CHAT_COMPLETIONS_V1 = URL_OPEN_AI + "/v1/chat/completions";

    public static final String URL_POST_CREATE_EDIT_V1 = URL_OPEN_AI + "/v1/edits";

    public static final String URL_POST_CREATE_IMAGE_V1 = URL_OPEN_AI + "/v1/images/generations";
    public static final String URL_POST_CREATE_IMAGE_EDIT_V1 = URL_OPEN_AI + "/v1/images/edits";
    public static final String URL_POST_CREATE_IMAGE_VARIATION_V1 = URL_OPEN_AI + "/v1/images/variations";

    public static final String URL_POST_CREATE_EMBEDDINGS_V1 = URL_OPEN_AI + "/v1/embeddings";

    public static final String URL_POST_CREATE_TRANSCRIPTION_V1 = URL_OPEN_AI + "/v1/audio/transcriptions";
    public static final String URL_POST_CREATE_TRANSLATION_V1 = URL_OPEN_AI + "/v1/audio/translation";


    // todo files, fine-tunes, moderations, engines, parameter details

}
